package designPatterns.daiLi;

/**
*@author created by zhanxianbo
*@date 2017年10月30日--下午4:55:37
*/
public class test {
	public static void main(String[] args) {
		/**代理模式*/
		Fly fly = new  bird();
		factory factory = new  factory();
		Fly f=(Fly) factory.creatObject(fly);
		f.gotofly();
	}

}


